package com.liwy3.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author Crazy4J
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUserEntity implements Serializable {

    public static final String USER_ID = "user_id";
    public static final String MER_ID = "mer_id";
    public static final String DEPT_ID = "dept_id";
    public static final String MER_NAME = "mer_name";
    public static final String USER_NAME = "user_name";
    public static final String NICK_NAME = "nick_name";
    public static final String USER_TYPE = "user_type";
    public static final String EMAIL = "email";
    public static final String PHONE_NUMBER = "phone_number";
    public static final String SEX = "sex";
    public static final String AVATAR = "avatar";
    public static final String PASSWORD = "PASSWORD";
    public static final String STATUS = "STATUS";
    public static final String DEL_FLAG = "del_flag";
    public static final String LOGIN_IP = "login_ip";
    public static final String LOGIN_DATE = "login_date";
    public static final String CREATE_BY = "create_by";
    public static final String CREATE_DATE = "create_date";
    public static final String UPDATE_BY = "update_by";
    public static final String UPDATE_DATE = "update_date";
    public static final String REMARK = "remark";
    private static final long serialVersionUID = 1L;
    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    /**
     * 商户号
     */
    @TableField("mer_id")
    private String merId;
    /**
     * 部门ID
     */
    @TableField("dept_id")
    private Long deptId;
    /**
     * 商户名称
     */
    @TableField("mer_name")
    private String merName;
    /**
     * 用户账号
     */
    @TableField("user_name")
    private String userName;
    /**
     * 用户昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 用户类型（00系统用户）
     */
    @TableField("user_type")
    private String userType;
    /**
     * 用户邮箱
     */
    @TableField("email")
    private String email;
    /**
     * 手机号码
     */
    @TableField("phone_number")
    private String phoneNumber;
    /**
     * 用户性别（0男 1女 2未知）
     */
    @TableField("sex")
    private String sex;
    /**
     * 头像地址
     */
    @TableField("avatar")
    private String avatar;
    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;
    /**
     * 帐号状态（0正常 1停用）
     */
    @TableField("STATUS")
    private String status;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 最后登陆IP
     */
    @TableField("login_ip")
    private String loginIp;
    /**
     * 最后登陆时间
     */
    @TableField("login_date")
    private LocalDateTime loginDate;
    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;
    @TableField("create_date")
    private LocalDateTime createDate;
    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;
    @TableField("update_date")
    private LocalDateTime updateDate;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

}
